package kr.hkit.powerjava.chapter26.test2;

import java.util.Properties;



public class TestMain {
	public static void main(String[] args) {
		String driver = "com.mysql.jdbc.Driver";
		String url = "jdbc:mysql://localhost:3306/mysql_study";
		String user = "root";
		String password = "1111";
		
		DBProperties.saveProperties("db_con_t2.xml", driver, url, user, password);
		
		Properties prop = DBProperties.loadProperties("db_con_t2.xml");
		
		System.out.println(prop.getProperty("DRIVER"));
		System.out.println(prop.getProperty("URL"));
		System.out.println(prop.getProperty("USER"));
	}
}
